import { request } from "@/utils/service"
import { getToken } from "@/utils/cache/cookies"
import axios from "axios"
const baseURL = import.meta.env.VITE_BASE_API
// /** 改 */
export function updateAgencyDataApi(data: any) {
  return request({
    url: "user/update",
    method: "post",
    data
  })
}
// 修改用户密码
export function updatechangePasswordApi(data: any) {
  return request({
    url: "/user/changePassword",
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data",
      token: getToken()
    },
    data
  })
}
// 用户忘记密码进行修改
export function updateCoverPassword(data: any) {
  return request({
    url: "/coverPassword",
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data",
      token: getToken()
    },
    data
  })
}
/**下载宽带对接文档 */
export function updateApiKD() {
  return axios({
    url: `${baseURL}/downTemplate/web`,
    method: "get",
    headers: {
      "Content-Type": "multipart/form-data",
      token: getToken()
    },
    responseType: "blob"
  })
}
/**下载存量对接文档 */
export function updateApiCL() {
  return axios({
    url: `${baseURL}/downTemplate/cl`,
    method: "get",
    headers: {
      "Content-Type": "multipart/form-data",
      token: getToken()
    },
    responseType: "blob"
  })
}
